package com.zahb.qadx.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zahb.qadx.R;
import com.zahb.qadx.model.OfflinePlanBean;

import org.jetbrains.annotations.NotNull;


public class OfflineTrainAdapter extends BaseQuickAdapter<OfflinePlanBean.RecordsEntity, BaseViewHolder> {
    public OfflineTrainAdapter(int layoutResId) {
        super(layoutResId);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, OfflinePlanBean.RecordsEntity s) {

        baseViewHolder.setText(R.id.tvName,s.getPlanName())
                .setText(R.id.tvTime,"时间："+s.getStartTime()+" ~ "+s.getEndTime())
                .setText(R.id.tvaddress,"地点："+s.getPlanAddress())
                .setText(R.id.tvTimeLength,"学时："+s.getLearnHoursStr());

    }
}
